package com.example.lotterysystem.controller.param;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

@Data
public class ActivityPrizeParam implements Serializable {
    /**
     * 奖品id
     */
    @NotNull(message = "奖品id不能为空")
    private Long prizeId;

    /**
     * 奖品数量
     */
    @NotNull(message = "奖品数量不能为空")
    @Min(value = 1, message = "奖品数量需大于等于1")
    private Long prizeAmount;

    /**
     * 奖品等级
     */
    @NotBlank(message = "奖品等级不能为空")
    private String prizeTiers;
}
